package payroll.classification;

import java.util.HashMap;
import java.util.Map;

      import payroll.PaymentClassification;
         import payroll.TimeCard;

public class HourlyClassification implements PaymentClassification {

	       private double hourlyRate;
	     private Map<String, TimeCard> timeCards = new HashMap<>();

	public HourlyClassification(double hourlyRate) {
		this.hourlyRate = hourlyRate;
	}

	public double getHourlyRate() {
		return hourlyRate;
	}

	public TimeCard getTimeCardOfDate(String date) {
		return timeCards.get(date);
	}

	public void addTimeCard(TimeCard timeCard) {
		timeCards.put(timeCard.getDate(), timeCard);
	}

}